dreamweaver.openDocument()

Availability 2.0
Description Opens a document for editing in a new Dreamweaver window and gives it the focus. To the user, the effect is the same as choosing File > Open and selecting a file. If the specified file is already open, the window containing the document comes to the front. The window containing the specified file becomes the currently selected document. In Dreamweaver 2, if the check-in/check-out option is enabled, the file is checked out before it is opened. In Dreamweaver 3, you must use dreamweaver.openDocumentFromSite() to get this behavior.
Note: This function cannot be called from behavior action or object files. An error will result.
Arguments fileName
The argument is the name of the file to be opened, expressed as a URL. If the URL is relative, it is relative to the file containing the script that called this function.
Returns The document object for the specified file. This is the same value that is returned by dreamweaver.getDocumentDOM().
Enabler None.